home *** CD-ROM | disk | FTP | other *** search
/ Floppyshop 2 / Floppyshop - 2.zip / Floppyshop - 2.iso / diskmags / 4671-5.790 / dmg-5541 / atribute.txt < prev    next >
Text File  |  1989-12-31  |  6KB  |  128 lines

  1.                          THE THIRD DIMENSION
  2.  
  3. KIT ATTRIBUTES
  4.  
  5. This month we will take an in depth look at Object Attributes,
  6. namely SNS and TRN or SENSORS and TRANSPORTERS.
  7.  
  8. Attributes tell the 3D kit how an object will behave.To access an 
  9. objects attributes simply select the fourth icon from the left on 
  10. the control panel (in kit 2) then select the object from the menu 
  11. that you wish to alter.By selecting an object from the list you 
  12. can now alter its attributes.We are dealing with SNS and TRN in 
  13. this article so lets take a look at these in more detail.
  14.  
  15. TRANSPORTER-TRN
  16. In kit 1 we use a GOTO command on an object to transport us from one 
  17. entrance to another.E.g.-
  18.  
  19. IF COLLIDED?
  20. GOTO (1,2)
  21. ENDIF
  22.  
  23. In kit 2 things have been made simpler by the use of the attribute 
  24. menu/icon TRN button.To get to this you click on the fourth icon 
  25. from the left in the control panel,next select an object from the 
  26. list that you wish to make into a transporter and then press the OK 
  27. button.You will then see the Edit Object Attributes menu.Next 
  28. press on the TRN button and the word TRANSPORTER will change into 
  29. a button in the lower right part of the panel.Press on this 
  30. button and a new Edit Transporter Attribute panel will appear.You 
  31. can now click on the AREA and/or ENTRANCE number/s to change them 
  32. to whichever entrance/area that you wish to be transported 
  33. to,then press the OK buttons and that is all there is to it.
  34. Now collide with the object that you have just changed into a 
  35. transporter and you should end up at another entrance etc.If not 
  36. simply create a new entrance 2 and set the attributes of the 
  37. transporter to area 1 and entrance 2.Then collide with it again.
  38.  
  39.      The possibilities for the transporter attribute are 
  40. endless.Instead of having just doors that transport you to other 
  41. areas you can also have invisible floor objects that do the same 
  42. so that the player doesn't know that they are about to be 
  43. transported elsewhere.  
  44.  
  45. SENSORS-SNS
  46. In kit 1 to make a sensor you go to the create object menu and 
  47. select sensor.You can then edit the sensor to either shoot or 
  48. detect you.In kit 2 you can do the above and you can also make 
  49. any object into a sensor simply by selecting its attributes as 
  50. you would for a transporter.This time selecting the SNS button 
  51. from the menu brings up the SENSOR menu.You can then use the 
  52. sensor to shoot you or detect you.You can also use a sensor to 
  53. trigger of a procedure.
  54.  
  55. Shooting Sensor Routine.
  56.      Here is a routine to make a sensor shoot you 10 times and 
  57. end the game.First create an Area Condition and enter the 
  58. following.-
  59.  
  60. IF VAR=? (10,V11)
  61. THEN ENDGAME
  62. ENDIF
  63.  
  64. Variable 11 counts the number of times that you have been shot 
  65. and when it reaches 10 it resets/ends the game.
  66. Now create the sensor that will shoot you and make sure that it 
  67. is set to SHOOT.You can alter the range and speed to suit you and 
  68. also choose a sample to play as it shoots.
  69. Now reset the game and walk towards the sensor to try it out.
  70.  
  71. Shooting Sensor Range Detection Routine.
  72.  
  73. This routine is used as a range detector.The nearer you get to 
  74. the danger zone (cube) the faster the alarm sounds and shoots.
  75. Start by creating a cube in the centre of the area.Then create 3 
  76. sensors on top of it.Set the range of the first sensor to 4000 
  77. and the speed to 50.Set the sound to a suitable firing/warning 
  78. sample.Next set the second sample range to 3000,speed to 30 and 
  79. use the same sample sound as before.Finally set sensor number 3 
  80. to a range of 2000,speed 15 and the same sample again.
  81. Now as you get closer to the cube the sensor will shoot you 
  82. faster and faster.You could also use the Procedure function of 
  83. the sensor to bring up some warning text when you get 
  84. detected/shot.
  85.  
  86. Door Sensor.
  87.  
  88. You can also use a sensor to create doors that open as you 
  89. approach them.First create a room or passage way with a door at 
  90. the end of it.Make the door by creating a black rectangle on the 
  91. wall that looks like a door opening in the wall.In front of this 
  92. create a red door from a cube object that is the same size as the 
  93. black wall opening.Now create another 2 doors (objects 4 and 5) 
  94. that are half the width of the first red door (object 3 ) and 
  95. place these to the left and right of the red door.Colour these 
  96. red too and set their default object attributes to INVISIBLE.Next 
  97. click on the object attributes of the first central red door and 
  98. make it into a sensor as described above.Set the sensor to detect 
  99. and give it a procedure (1). Now create and edit a procedure with 
  100. the following.-
  101.  
  102. INVIS (3)                 
  103. VIS (4)
  104. VIS (5)
  105. SOUND (3)
  106.  
  107. Now RESET the game and as you approach the door the sensor will 
  108. detect you and make invisible the door and visible the two door 
  109. pieces either side of the black opening to give the illusion of a 
  110. door opening ( as in star trek etc ) in the middle.Then you can 
  111. make the black opening into a transporter as described above,to 
  112. take you to another area.A suitable door opening sample for 
  113. sound 5 would enhance the effect.
  114.  
  115. Using the sensor to detect you instead of shooting you is a 
  116. clever way of triggering off an event without the player ever 
  117. knowing about it ubless you want them to.You can create a sensor 
  118. where you want to detect the player approaching then use a 
  119. procedure as explained above to make monsters appear,ceilings 
  120. lower,floors open up walls crush you and many other devilish 
  121. effects.Remember that sensors work just as good in kit 1 as they 
  122. do in kit 2!
  123.  
  124. Tony  
  125.  
  126.  
  127.  
  128.